# 开启错误退出
set -e

echo "hello..."

workFolder="letcode701"

echo "rm build folder"
rm -rf coding/${workFolder}/build

echo "make build dir"
mkdir coding/${workFolder}/build

cd ./coding/${workFolder}/build

echo pwd
pwd

echo "run: cmake .."
# cmake .. # 替换成下面这条指令
cmake -G "MinGW Makefiles" ..

echo "run: cmake --build ."
cmake --build .

echo "run: exe"
pwd
echo ${workFolder}
# ./Debug/${workFolder}.exe
./${workFolder}.exe

# read -p "Press any key to continue..."